-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AB testing: schedule a refresh based on TTL #15226
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
This will make easier to extrat it to a library
…, decoupling from WPiOS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, left a concern about timers though.
return | ||
} | ||
|
||
self.scheduleTimer = Timer.scheduledTimer(withTimeInterval: self.ttl, repeats: true) { [weak self] timer in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had a lot of issues with timers in the past, I think you should invalidate and reset when the app goes to the background or comes to the foreground.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point!
Changed in 629db96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 🚢 Looks good to me.
Part of wordpress-mobile/WordPress-iOS-Shared#278
This PR:
tll
that the ExPlat response returnsURLSession
instead ofWordPressComRestApi
The latter two will help to extract it to https://github.com/Automattic/Automattic-Tracks-iOS
To test
Again, rely on the code/tests. :)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.